<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib uri="http://java.sun.com/jstl/core" prefix="c"%>
<%
	String contextPath = request.getContextPath();
	String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort();
	String flag = request.getParameter("flag");
	flag = flag == null ? "" : flag;
%>
<script language="JavaScript"> 
var flag = "<%=flag%>";
if(flag=="noSession"){
	alert("session过期，返回主界面");
	top.location.href = "<%=contextPath%>/login.do"; 
} else {
	alert("系统超时，重新登录!");
	if (window != top){
		top.location.href = "<%=basePath%>"; 
	}else{
		window.location.href = "<%=basePath%>";
	}
}
</script>
